package com.training1.core.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;


public class WellSettingParamDto {
	public static final String A_WELLHEADCOUNT_KEY = "FX_A_JK";
	public static final String B_WELLHEADCOUNT_KEY = "FX_B_JK";
	
	

	
	
	
	@NotNull(message="{module.systemparamdto.aWellheadCount.notnull}")
	//@Range(min=1,message="{module.systemparamdto.aWellheadCount.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.aWellheadCount.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.aWellheadCount.length.error}")
	private String aWellheadCount;
	private String aWellheadCountKey;
	
	@NotNull(message="{module.systemparamdto.bWellheadCount.notnull}")
	//@Min(value=1,message="{module.systemparamdto.bWellheadCount.error}")
	@Pattern(regexp="^\\d+$",message="{module.systemparamdto.bWellheadCount.error}")
	@Length(min=1, max=10,message="{module.systemparamdto.bWellheadCount.length.error}")
	private String bWellheadCount;
	private String bWellheadCountKey;
	public WellSettingParamDto() {
		this.aWellheadCountKey = A_WELLHEADCOUNT_KEY;
		this.bWellheadCountKey = B_WELLHEADCOUNT_KEY;
	}


	public String getaWellheadCount() {
		return aWellheadCount;
	}

	public void setaWellheadCount(String aWellheadCount) {
		this.aWellheadCount = aWellheadCount;
	}


	public String getbWellheadCount() {
		return bWellheadCount;
	}

	public void setbWellheadCount(String bWellheadCount) {
		this.bWellheadCount = bWellheadCount;
	}

	public String getaWellheadCountKey() {
		if(aWellheadCountKey == null) {
			return A_WELLHEADCOUNT_KEY;
		}
		return aWellheadCountKey;
	}

	public void setaWellheadCountKey(String aWellheadCountKey) {
		this.aWellheadCountKey = aWellheadCountKey;
	}


	public String getbWellheadCountKey() {
		if(bWellheadCountKey == null){
			return B_WELLHEADCOUNT_KEY;
		}
		return bWellheadCountKey;
	}

	public void setbWellheadCountKey(String bWellheadCountKey) {
		this.bWellheadCountKey = bWellheadCountKey;
	}

}
